package com.shop.milk_tea_shop.dto;

import com.shop.milk_tea_shop.entity.ItemInfo;
import lombok.Data;

import java.util.List;

/**
 * @Author: zrm
 * @CreateTime: 2024/06/23  15:11
 * @Description: 菜单信息类，包括商品分类信息和商品信息
 */
@Data
public class MenuDTO {

    private Long categoryId;

    private String categoryName;

    private List<ItemInfo> items;

    public MenuDTO(Long categoryId, String categoryName, List<ItemInfo> items) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.items = items;
    }
}
